import React ,{Component}from 'react'
import {Route ,BrowserRouter , Switch} from 'react-router-dom'
import Login from './pages/login/login'
// import App from './App'
import Admin from './pages/admin/admin'
export default class Router extends Component{
    render(){
        return(
            <BrowserRouter>
            {/* <App> */}
              <Switch>
                <Route  path="/login" component={Login} />
                <Route  path='/' component={Admin} />
              </Switch>
           
            {/* </App> */}
           </BrowserRouter>
        )
    }
} 